//
//  UIlabel+Extension.swift
//  Weibo
//
//  Created by 崔健 on 16/5/24.
//  Copyright © 2016年 cbj. All rights reserved.
//

import UIKit

extension UILabel{

    convenience init(text : String , font : CGFloat , textColor : UIColor = UIColor.darkGrayColor() , alignment : NSTextAlignment = .Center) {
        self.init()
        
        self.text = text
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(font)
        self.textAlignment = alignment
        numberOfLines = 0
        sizeToFit()
    }
}
